<?php 
try{
	$handler = new PDO('mysql:host=127.0.0.1;dbnametechafg_01','techafg_01','@452=T=C2Cg5');
  $handler->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
  $name = "Mustafa";
  $data = $handler->query('SELECT * FROM `users` WHERE firstname = ' . $handler->quote($name));
 
    foreach($data as $row) {
        print_r($row); 
    }
} catch(PDOException $e){
	echo "Error: " . $e->getMessage();
}
